Kubernetes – Save all manifest of an existing cluster

  To save all manifests, create a BASH script:   With the following contents:   Add the execution bit and run it:   After executing in the current directory in the folder “k8s-manifests” will be saved all manifests ordered by namespaces and types.